-- GENERATED SPELL FOR [Scarlet Invoker] --


function spell0_1835(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(11975,pUnit)
pUnit:RegisterEvent('Sorts_1835', 1500, 1)
end

function spell1_1835(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(15736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1835', 607, 1)
end

function Sorts_1835(pUnit, Event)
local choix_sorts_1835 = math.random(0, 1)
if choix_sorts_1835 == 0 then
pUnit:RegisterEvent('spell0_1835', 1, 1)
end
if choix_sorts_1835 == 1 then
pUnit:RegisterEvent('spell1_1835', 1, 1)
end
end

function mob1835_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1835', math.random(1500, 3000), 1)
end

function mob1835_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1835_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1835_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1835, 1, 'mob1835_Action')
RegisterUnitEvent(1835, 2, 'mob1835_Leave')
RegisterUnitEvent(1835, 3, 'mob1835_Kill')
RegisterUnitEvent(1835, 4, 'mob1835_Die')
